package cn.itheima.domain;

/**
 * @author: cuisensen
 * data: 2018/7/3.
 * time: 16:03.
 */
public class Section{
    private String sname;
    private String uid;
    private int sid;





    public int getSid() {
        return sid;
    }

    public void setSid(int sid) {
        this.sid = sid;
    }

    @Override
    public String toString() {
        return "Section{" +
                "sname='" + sname + '\'' +
                ", uid='" + uid + '\'' +
                '}';
    }

    public String getSname() {
        return sname;
    }

    public void setSname(String sname) {
        this.sname = sname;
    }

    public String getUid() {
        return uid;
    }

    public void setUid(String uid) {
        this.uid = uid;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        Section section = (Section) o;
        if (sname != null ? !sname.equals(section.sname) : section.sname != null) return false;
        return uid != null ? uid.equals(section.uid) : section.uid == null;

    }

    @Override
    public int hashCode() {
        int result = sname != null ? sname.hashCode() : 0;
        result = 31 * result + (uid != null ? uid.hashCode() : 0);
        result = 31 * result + sid;
        return result;
    }
}
